/**
 *
 *
 */
package com.fw.timesheet.service;

import java.util.List;

import com.fw.timesheet.dao.ClientDAO;
import com.fw.timesheet.model.Client;
import com.fw.timesheet.model.Employee;


/**
 * @author sigit <br>
 * @version 1.0 <br>
 * Application : timesheet <br>
 * Copyright (c) fastwire-group 2012 <br>
 * <br>
 */
public class ClientService extends BaseService {

	
	private ClientDAO clientDAO;

	public ClientDAO getClientDAO() {
		return clientDAO;
	}

	public void setClientDAO(ClientDAO clientDAO) {
		this.clientDAO = clientDAO;
		setDaoObject(clientDAO);
	}
	
	public void delete(Client persistentInstance) {
		getClientDAO().delete(persistentInstance);
	}
	
	public Client findById(Integer id) {
		return getClientDAO().findById(id);
	}
	
	public List<Client> findAll() {
		return getClientDAO().findAll();
	}
}
